home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / Darts(Shanghai).dxr / darts and board_6_New Behavior.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  271 b   |  14 lines

  1. global pseudoList, gTargets
  2.  
  3. on beginSprite me
  4.   pseudoList = []
  5.   repeat with i = 1 to gTargets.count
  6.     if sprite(gTargets[i]).pSector = 1 then
  7.       pseudoList.add(gTargets[i])
  8.     end if
  9.     if pseudoList.count = 4 then
  10.       exit repeat
  11.     end if
  12.   end repeat
  13. end
  14.